package demo.ioc.web;

import demo.ioc.my.core.annotation.Autowired;
import demo.ioc.my.core.annotation.Controller;
import demo.ioc.my.core.annotation.RequestMapping;
import demo.ioc.service.HelloService;

/**
 * Created by 张少昆 on 2018/3/18.
 */
@Controller
public class HelloController {
    @Autowired
    private HelloService helloService;

    @RequestMapping( "/time" )
    public String time(){
        return helloService.getTime();
    }
}
